package auth

import (
	"time"
)

const (
	timeFormat = " 2013-11-01 13:40:47.0467159 +0800 +0800"
)

type session struct {
	Token      string
	Expiration time.Time
}

func (t *session) Expire() bool {
	return time.Now().After(t.Expiration)
}

func (t *session) Delay(d time.Duration) {
	t.Expiration = time.Now().Add(d)
}
